<?php
class Zend_View_helper_AuthLogin {

	static public function AuthLogin() {
		$auth = Zend_Auth::getInstance();
    	$auth->setStorage(new Zend_Auth_Storage_Session('user'));
    	if($auth->hasIdentity()){
    		$data = $auth->getStorage()->read();
    		$result = json_encode($data);
    		return $result;
    	}
		//FirePHP::getInstance(true)->log($auth->getStorage()->read());
		return false;
	}
}